<div id="content">
    <div id="page-heading"><h1>Sửa nhóm tài khoản</h1></div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized"><img src="<?= base_url(); ?>images/admin_img/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
            <th class="topleft"></th>
            <td id="tbl-border-top">&nbsp;</td>
            <th class="topright"></th>
            <th rowspan="3" class="sized"><img src="<?= base_url(); ?>images/admin_img/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
        </tr>
        <tr>
            <td id="tbl-border-left"></td>
            <td>
                <!--  start content-table-inner -->
                <div id="content-table-inner">
                    <div class="table-content">
                        <div class="ct-sp">
                            <div class="quay_lai"><a href="<?= base_url(); ?>dienhoa-administrator/account/view_profile">Thoát <img src="<?= base_url(); ?>images/cancel.png" width="18" height="18" class="cancel"/></a></div>
                            <div class="warning"><? if ($this->session->flashdata("warning")) echo $this->session->flashdata("warning"); ?></div>
                            <form name="fSuaSp" method="post" enctype="multipart/form-data" action="<?= base_url(); ?>dienhoa-administrator/account/edit_group/<?= $id;?>">
                                <table>
                                    <tr>
                                        <th class="title_infor2">Form sửa nhóm tài khoản</th>
                                    </tr>
                                    <tr>
                                        <td class="col-infor">
                                            <table class="table_infor3">
                                                <tbody>
                                                    <tr>
                                                        <th>Tên nhóm</th>
                                                        <td><input type="text" name="txtName" value="<?= $group_name; ?>"/><span class="errors"><? echo form_error("txtName"); ?></span></td>
                                                    <tr>
                                                        <th>Quyền xem trên trang</th>
                                                        <td>
                                                            <div class="permis">
                                                                <? foreach ($permission as $per): ?>
                                                                    <? if ($permission_view > 0): ?>
                                                                        <input type="checkbox" name="permis_view[]" value="<?= $per; ?>" <? if (in_array($per, @$permission_view)) echo "checked"; ?> />&nbsp;<?= $per; ?><br/>
                                                                    <? endif; ?>
                                                                <? endforeach; ?>
                                                            </div>
                                                        </td>
                                                    <tr>
                                                    <tr>
                                                        <th>Quyền xóa và sửa trên trang</th>
                                                        <td>
                                                            <div class="permis">
                                                                <? foreach ($permission as $per): ?>
                                                                    <? if (@$permission_edit_delete > 0): ?>
                                                                <input type="checkbox" name="permis_edit_delete[]" value="<?= $per; ?>" <? if(in_array($per, @$permission_edit_delete)) echo "checked"; ?>/>&nbsp;<?= $per; ?><br/>
                                                                    <? endif; ?>
                                                                <? endforeach; ?>
                                                            </div>
                                                        </td>
                                                    <tr>
                                                    <tr>
                                                        <td colspan="2" align="center"><input type="submit" value="Gửi" id="btnSua"/>&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="Xóa" id="btnSua"/></td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </form>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <!--  end content-table-inner  -->
            </td>
            <td id="tbl-border-right"></td>
        </tr>
        <tr>
            <th class="sized bottomleft"></th>
            <td id="tbl-border-bottom">&nbsp;</td>
            <th class="sized bottomright"></th>
        </tr>
    </table>

    <div class="clear">&nbsp;</div>
</div>
